<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'exp04_01.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <%
  int score[]=new int[5];
  score[0]=88;
  score[1]=70;
  score[2]=91;
  score[3]=78;
  score[4]=84;
  pageContext.setAttribute("score",score);
   %>
          五门学科分数：
   ${score[0]}&nbsp;&nbsp;
   ${score[1]}&nbsp;&nbsp;
   ${score[2]}&nbsp;&nbsp;
   ${score[3]}&nbsp;&nbsp;
   ${score[4]}&nbsp;&nbsp;
   <hr>
  总分：${score[0]+score[1]+score[2]+score[3]+score[4]}&nbsp;&nbsp;
 平均分： ${(score[0]+score[1]+score[2]+score[3]+score[4])/5}
   
   
  </body>
</html>
